package com.hj.service;

import com.hj.domain.HjToken;
import com.hj.domain.LoginUser;

/**
 * @Description token 处理
 * @author hj
 */
public interface HjTokenService {

    /**
     * save
     *
     * @param loginUser loginUser
     * @return Token
     */
    HjToken save(LoginUser loginUser);

    /**
     * refresh
     *
     * @param loginUser loginUser
     */
    void refresh(LoginUser loginUser);

    /**
     * get
     *
     * @param token token
     * @return LoginUser
     */
    LoginUser get(String token);

    /**
     * delete
     *
     * @param token token
     */
    void delete(String token);


}
